<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#">修改考试题库</a></li>
    </ul>
    <form class="form-horizontal js-ajax-form" action="{:U('Test/editTest')}" method="post">
        <fieldset>
            <div class="control-group">
                <label class="control-label">考试标题:</label>
                <div class="controls">
                    <textarea name="testdb_content"  cols="20" rows="3">{$datas.testdb_content}</textarea> *
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">备选答案A:</label>
                <div class="controls">
                    <textarea name="testdb_answer1"  cols="20" rows="3">{$datas.testdb_answer1}</textarea> *
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">备选答案B:</label>
                <div class="controls">
                    <textarea name="testdb_answer2"  cols="20" rows="3">{$datas.testdb_answer2}</textarea> *
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">备选答案C:</label>
                <div class="controls">
                    <textarea name="testdb_answer3"  cols="20" rows="3">{$datas.testdb_answer3}</textarea> *
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">备选答案D:</label>
                <div class="controls">
                    <textarea name="testdb_answer4" cols="20" rows="3">{$datas.testdb_answer4}</textarea> *
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">正确答案:</label>
                <div class="controls">
                    <input class="" name="testdb_right_answer" type="text" value="{$datas.testdb_right_answer}" placeholder=""/>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">是否发布:</label>
                <div class="controls">
                    <php>$yes_selected=$datas['is_pub']==1?"selected":"";
                        $no_selected=$datas['is_pub']==0?"selected":""</php>
                <select class="select_2" name="is_pub" value="{$datas.is_pub}" style="width: 70px;" >
                    <option value='0'{$no_selected}>否</option>
                    <option value='1'{$yes_selected}>是</option>
                </select>
                </div>
            </div>
        </fieldset>
        <div class="form-actions">
            <input name="testdb_id" value="{$datas.testdb_id}" type="hidden">
            <button type="submit" class="btn btn-primary  js-ajax-submit">{:L('SAVE')}</button>
            <a class="btn" href="{:U('test/test')}">{:L('BACK')}</a>
        </div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>